/* Copyright Thanh-Trung Pham, JAIST, 2012 */

package jp.ac.jaist.message;

import java.util.ListResourceBundle;

/**
 *
 * @author Thanh-Trung Pham
 */
public class RMMessageResource extends ListResourceBundle {

    //////////////////////////////////////////////////////
    //Messages from 1 to 99 are for the input model manager component.
    public static final String IMM_NON_EXISTING_INPUT_MODEL_FILE = "1";
    public static final String IMM_UNEXPECTED_EXCEPTION = "2";
    public static final String IMM_INVALID_INPUT_MODEL = "3";
    public static final String IMM_DUPLICATED_USER_INTERFACE = "4";
    public static final String IMM_DUPLICATED_SERVICE = "5";
    public static final String IMM_DUPLICATED_SYSTEM_ARCHITECTURE = "6";
    public static final String IMM_DUPLICATED_COMPONENT = "7";
    public static final String IMM_DUPLICATED_USAGE_PROFILE = "8";
    public static final String IMM_DUPLICATED_AVERAGE_IN_USAGE_PROFILE = "9";
    public static final String IMM_DUPLICATED_PROBABILITY_IN_USAGE_PROFILE = "10";
    public static final String IMM_DUPLICATED_COMPONENT_INSTANCE_IN_SYSTEM_ARCHITECTURE = "11";
    public static final String IMM_DUPLICATED_COMPONENT_CONNECTOR_IN_SYSTEM_ARCHITECTURE = "12";
    public static final String IMM_DUPLICATED_REQUIRED_SERVICE_IN_COMPONENT = "13";
    public static final String IMM_NOT_DECLARED_REQUIRED_SERVICE_IN_COMPONENT = "14";
    public static final String IMM_DUPLICATED_PROVIDED_SERVICE_IN_COMPONENT = "15";
    public static final String IMM_NOT_DECLARED_PROVIDED_SERVICE_IN_COMPONENT = "16";
    public static final String IMM_DUPLICATED_SERVICE_IMPLEMENTATION_IN_COMPONENT = "17";
    public static final String IMM_NOT_FOR_PROVIDED_SERVICE_IMPLEMENTATION_IN_COMPONENT = "18";
    public static final String IMM_MISSING_SERVICE_IMPLEMENTATION_IN_COMPONENT = "19";
    public static final String IMM_REDUNDANT_REQUIRED_SERVICE_IN_COMPONENT = "20";
    public static final String IMM_INVALID_INTERNAL_ACTIVITY_IN_SERVICE_IMPLEMENTATION_IN_COMPONENT = "21";
    public static final String IMM_INVALID_CALLING_ACTIVITY_IN_SERVICE_IMPLEMENTATION_IN_COMPONENT = "22";
    public static final String IMM_DUPLICATED_INTERNAL_ACTIVITY_NAME_IN_SERVICE_IMPLEMENTATION_IN_COMPONENT = "23";
    public static final String IMM_NOT_DECLARED_COMPONENT_IN_SYSTEM_ARCHITECTURE = "24";
    public static final String IMM_NOT_DECLARED_COMPONENT_INSTANCE_IN_SYSTEM_ARCHITECTURE = "25";
    public static final String IMM_NOT_EXISTING_REQUIRED_SERVICE_IN_COMPONENT_CONNECTOR_IN_SYSTEM_ARCHITECTURE = "26";
    public static final String IMM_NOT_EXISTING_PROVIDED_SERVICE_IN_COMPONENT_CONNECTOR_IN_SYSTEM_ARCHITECTURE = "27";
    public static final String IMM_USER_INTERFACE_REFERRING_TO_NON_EXISTING_SYSTEM_ARCHITECTURE = "28";
    public static final String IMM_USER_INTERFACE_REFERRING_TO_NON_EXISTING_COMPONENT_INSTANCE = "29";
    public static final String IMM_USER_INTERFACE_REFERRING_TO_NON_EXISTING_PROVIDED_SERVICE = "30";
    public static final String IMM_USAGE_PROFILE_REFERRING_TO_NON_EXISTING_USER_INTERFACE = "31";
    public static final String IMM_USER_INTERFACE_CONTAINING_RECURSIVE_CALLS = "32";
    public static final String IMM_USER_INTERFACE_MISSING_USAGE_PROFILE = "33";
    public static final String IMM_USER_INTERFACE_MISSING_USAGE_PROFILE_PROBABILITY = "34";
    public static final String IMM_USER_INTERFACE_INVALID_USAGE_PROFILE_PROBABILITIES = "35";
    public static final String IMM_USER_INTERFACE_MISSING_USAGE_PROFILE_AVERAGE = "36";
    public static final String IMM_USER_INTERFACE_MISSING_COMPONENT_CONNECTOR = "37";
    ///////////////////////////////////////////////////////////////////////
    //Messages from 101 to 199 are for the command-line interface component.
    public static final String CLI_UNEXPECTED_EXCEPTION = "101";
    private static final Object[][] CONTENTS = {
        ////////////////////////////////////////////////////////////////////////////////////
        //for the input model manager component
        {IMM_NON_EXISTING_INPUT_MODEL_FILE, "The input model file ''{0}'' is not existing."},
        {IMM_UNEXPECTED_EXCEPTION, "Unexpected exception: {0}."},
        {IMM_INVALID_INPUT_MODEL, "The input model is invalid."},
        {IMM_DUPLICATED_USER_INTERFACE, "The input model is invalid: Duplicated user interface ''{0}''."},
        {IMM_DUPLICATED_SERVICE, "The input model is invalid: Duplicated service ''{0}''."},
        {IMM_DUPLICATED_SYSTEM_ARCHITECTURE, "The input model is invalid: Duplicated system architecture ''{0}''."},
        {IMM_DUPLICATED_COMPONENT, "The input model is invalid: Duplicated component ''{0}''."},
        {IMM_DUPLICATED_USAGE_PROFILE, "The input model is invalid: Duplicated usage profile for user interface ''{0}''."},
        {IMM_DUPLICATED_AVERAGE_IN_USAGE_PROFILE, "The input model is invalid: Duplicated average label ''{0}'' in the usage profile for user interface ''{1}''."},
        {IMM_DUPLICATED_PROBABILITY_IN_USAGE_PROFILE, "The input model is invalid: Duplicated probability label ''{0}'' in the usage profile for user interface ''{1}''."},
        {IMM_DUPLICATED_COMPONENT_INSTANCE_IN_SYSTEM_ARCHITECTURE, "The input model is invalid: Duplicated component instance ''{0}'' in the system architecture ''{1}''."},
        {IMM_DUPLICATED_COMPONENT_CONNECTOR_IN_SYSTEM_ARCHITECTURE, "The input model is invalid: Duplicated component connector for required service ''{0}'' of component instance ''{1}'' in the system architecture ''{2}''."},
        {IMM_DUPLICATED_REQUIRED_SERVICE_IN_COMPONENT, "The input model is invalid: Duplicated required service ''{0}'' in component ''{1}''."},
        {IMM_NOT_DECLARED_REQUIRED_SERVICE_IN_COMPONENT, "The input model is invalid: Required service ''{0}'' of component ''{1}'' has not been declared in the service list."},
        {IMM_DUPLICATED_PROVIDED_SERVICE_IN_COMPONENT, "The input model is invalid: Duplicated provided service ''{0}'' in component ''{1}''."},
        {IMM_NOT_DECLARED_PROVIDED_SERVICE_IN_COMPONENT, "The input model is invalid: Provided service ''{0}'' of component ''{1}'' has not been declared in the service list."},
        {IMM_DUPLICATED_SERVICE_IMPLEMENTATION_IN_COMPONENT, "The input model is invalid: Duplicated service implementation for service ''{0}'' in component ''{1}''."},
        {IMM_NOT_FOR_PROVIDED_SERVICE_IMPLEMENTATION_IN_COMPONENT, "The input model is invalid: There is no provided service ''{0}'' for service implementation in component ''{1}''."},
        {IMM_MISSING_SERVICE_IMPLEMENTATION_IN_COMPONENT, "The input model is invalid: Missing a service implementation for provided service ''{0}'' in component ''{1}''."},
        {IMM_REDUNDANT_REQUIRED_SERVICE_IN_COMPONENT, "The input model is invalid: Redundant required service ''{0}'' in component ''{1}''."},
        {IMM_INVALID_INTERNAL_ACTIVITY_IN_SERVICE_IMPLEMENTATION_IN_COMPONENT, "The input model is invalid: There is an internal activity with (Sfp + Pfp > 1.0) OR (Sep + Nmep > 1.0) in the service implementation for provided service ''{0}'' in component ''{1}''."},
        {IMM_INVALID_CALLING_ACTIVITY_IN_SERVICE_IMPLEMENTATION_IN_COMPONENT, "The input model is invalid:  There is a calling activity referring to non-existing required service ''{0}'' in the service implementation for provided service ''{1}'' in component ''{2}''."},
        {IMM_DUPLICATED_INTERNAL_ACTIVITY_NAME_IN_SERVICE_IMPLEMENTATION_IN_COMPONENT, "The input model is invalid: Duplicated internal activity name ''{0}'' in the service implementation for provided service ''{1}'' in component ''{2}''."},
        {IMM_NOT_DECLARED_COMPONENT_IN_SYSTEM_ARCHITECTURE, "The input model is invalid: The component instance ''{0}'' refers to non-existing component ''{1}'' in system architecture ''{2}''."},
        {IMM_NOT_DECLARED_COMPONENT_INSTANCE_IN_SYSTEM_ARCHITECTURE, "The input model is invalid: There is a component connector referring to non-existing component instance ''{0}'' in system architecture ''{1}''."},
        {IMM_NOT_EXISTING_REQUIRED_SERVICE_IN_COMPONENT_CONNECTOR_IN_SYSTEM_ARCHITECTURE, "The input model is invalid: There is a component connector referring to non-existing required service ''{0}'' of component instance ''{1}'' in system architecture ''{2}''."},
        {IMM_NOT_EXISTING_PROVIDED_SERVICE_IN_COMPONENT_CONNECTOR_IN_SYSTEM_ARCHITECTURE, "The input model is invalid: There is a component connector referring to non-existing provided service ''{0}'' of component instance ''{1}'' in system architecture ''{2}''."},
        {IMM_USER_INTERFACE_REFERRING_TO_NON_EXISTING_SYSTEM_ARCHITECTURE, "The input model is invalid: User interface ''{0}'' refers to non-existing system architecture ''{1}''."},
        {IMM_USER_INTERFACE_REFERRING_TO_NON_EXISTING_COMPONENT_INSTANCE, "The input model is invalid: User interface ''{0}'' refers to non-existing component instance ''{1}'' in system architecture ''{2}''."},
        {IMM_USER_INTERFACE_REFERRING_TO_NON_EXISTING_PROVIDED_SERVICE, "The input model is invalid: User interface ''{0}'' refers to non-existing provided service ''{1}'' of component instance ''{2}''."},
        {IMM_USAGE_PROFILE_REFERRING_TO_NON_EXISTING_USER_INTERFACE, "The input model is invalid: There is a usage profile referring to non-existing user interface ''{0}''."},
        {IMM_USER_INTERFACE_CONTAINING_RECURSIVE_CALLS, "The input model is invalid: Service implementation for user interface ''{0}'' contains a recursive call to provided service ''{1}'' of component instance ''{2}''."},
        {IMM_USER_INTERFACE_MISSING_USAGE_PROFILE, "The input model is invalid: Missing a usage profile for user interface ''{0}''."},
        {IMM_USER_INTERFACE_MISSING_USAGE_PROFILE_PROBABILITY, "The input model is invalid: Missing a probability with label ''{0}'' in the usage profile for user interface ''{1}''."},
        {IMM_USER_INTERFACE_INVALID_USAGE_PROFILE_PROBABILITIES, "The input model is invalid: Invalid usage profile for user interface ''{0}'' because the total probability of ''{1}'' is greater than 1.0."},
        {IMM_USER_INTERFACE_MISSING_USAGE_PROFILE_AVERAGE, "The input model is invalid: Missing an average with label ''{0}'' in the usage profile for user interface ''{1}''."},
        {IMM_USER_INTERFACE_MISSING_COMPONENT_CONNECTOR, "The input model is invalid: Missing component connector for ''{0}'' in the system architecture used by user interface ''{1}''."},
        /////////////////////////////////////////////////////////////////////////////
        //for the command-line interface component
        {CLI_UNEXPECTED_EXCEPTION, "Unexpected exception: {0}."},};

    /*
     * (non-Javadoc)
     *
     * @see java.util.ListResourceBundle#getContents()
     */
    @Override
    protected Object[][] getContents() {
        return CONTENTS;
    }
}
